<template>
  <div class="no-data-component">
    <img src="./assets/no-data.png" alt="" />
    <p style="text-align: center">{{ text }}</p>
  </div>
</template>
<script>
export default {
  props: {
    text: {
      type: String,
      default: '暂无数据'
    }
  }
};
</script>
<style lang="scss">
.no-data-component {
  margin-top: 50rpx;
  img {
    width: 100%;
    min-height: 400rpx;
  }
}
</style>
